package com.top10.service.impl;

import com.top10.entity.CouponGoods;
import com.top10.entity.vo.CouponVo;
import com.top10.mapper.CouponGoodsMapper;
import com.top10.service.ICouponGoodsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author su
 * @since 2018-10-01
 */
@Service
public class CouponGoodsServiceImpl extends ServiceImpl<CouponGoodsMapper, CouponGoods> implements ICouponGoodsService {

    @Autowired
    private CouponGoodsMapper couponGoodsMapper;
    @Override
    public List<Map<String, Object>> selectgoodscoupon(String goodsuuid) {
        return couponGoodsMapper.selectgoodscoupon(goodsuuid);
    }

    @Override
    public List<Map<String, Object>> selectshopcoupon(String shopuuid, BigDecimal requirementAmount) {
        return couponGoodsMapper.selectshopcoupon(shopuuid,requirementAmount);
    }
    @Override
    public List<CouponVo> selectgoodscoupon0ne(String shopuuid, BigDecimal requirementAmount) {
        return couponGoodsMapper.selectshopcouponone(shopuuid,requirementAmount);
    }
    @Override
    public List<Map<String, Object>> selectshopcoupontwo(String shopuuid) {
        return couponGoodsMapper.selectshopcoupontwo(shopuuid);
    }

}
